<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Unserialize a Binary</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="mongodb-bson-binary.tostring.html">« MongoDB\BSON\Binary::__toString</a></li>
      <li style="float: right;"><a href="class.mongodb-bson-decimal128.html">MongoDB\BSON\Decimal128 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="class.mongodb-bson-binary.html">MongoDB\BSON\Binary</a></li>
    <li>Unserialize a Binary</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="mongodb-bson-binary.unserialize" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">MongoDB\BSON\Binary::unserialize</h1>
  <p class="verinfo">(mongodb &gt;=1.2.0)</p><p class="refpurpose"><span class="refname">MongoDB\BSON\Binary::unserialize</span> &mdash; <span class="dc-title">Unserialize a Binary</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-mongodb-bson-binary.unserialize-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">final</span> <span class="modifier">public</span> <span class="methodname"><strong>MongoDB\BSON\Binary::unserialize</strong></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$serialized</code></span>): <span class="type"><span class="type void">void</span></span></div>

 </div>


 <div class="refsect1 parameters" id="refsect1-mongodb-bson-binary.unserialize-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>
    
     <dt>
<code class="parameter">serialized</code></dt>

     <dd>

      <p class="para">
       The serialized <span class="classname"><a href="class.mongodb-bson-binary.html" class="classname">MongoDB\BSON\Binary</a></span>.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-mongodb-bson-binary.unserialize-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   没有返回值。
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-mongodb-bson-binary.unserialize-errors">
  <h3 class="title">错误／异常</h3>
  <ul class="simplelist">
   <li class="member">Throws <span class="classname"><a href="class.mongodb-driver-exception-invalidargumentexception.html" class="classname">MongoDB\Driver\Exception\InvalidArgumentException</a></span> on argument parsing errors.</li>
   <li class="member">Throws <span class="classname"><a href="class.mongodb-driver-exception-unexpectedvalueexception.html" class="classname">MongoDB\Driver\Exception\UnexpectedValueException</a></span> if the properties cannot be unserialized (i.e. <code class="parameter">serialized</code> was malformed).</li>
   <li class="member">Throws <span class="classname"><a href="class.mongodb-driver-exception-invalidargumentexception.html" class="classname">MongoDB\Driver\Exception\InvalidArgumentException</a></span> if the properties are invalid (e.g. missing fields or invalid values).</li>
  </ul>
 </div>


 <div class="refsect1 seealso" id="refsect1-mongodb-bson-binary.unserialize-seealso">
  <h3 class="title">参见</h3>
  <ul class="simplelist">
   <li class="member"><span class="methodname"><a href="mongodb-bson-binary.serialize.html" class="methodname" rel="rdfs-seeAlso">MongoDB\BSON\Binary::serialize()</a> - Serialize a Binary</span></li>
    <li class="member"><span class="function"><a href="function.unserialize.html" class="function" rel="rdfs-seeAlso">unserialize()</a> - 从已存储的表示中创建 PHP 的值</span></li>
    <li class="member"><a href="language.oop5.serialization.html" class="link">Serializing Objects</a></li>
  </ul>
 </div>


</div></div></div></body></html>